package com.bdqn.t382.mapper.storageRecord;

import com.bdqn.t382.entity.StorageRecord;
import com.bdqn.t382.entity.Supplier;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StorageRecordMapper {
    List<StorageRecord> selectByConditions(@Param("goodsName") String goodsName,
                                           @Param("supplierId") Integer supplierId,
                                           @Param("payStatus") Integer payStatus);

    /**
     * 查询入库记录表，包括供货商名称
     *
     * @Param SysUser
     */
    public List<StorageRecord> getStorageRecordListWithSupName(StorageRecord storageRecord);

    public List<StorageRecord> getStorageRecordListBySupplierId(@Param("supplierId") Integer supplierId);

    public List<Supplier> getBySupplierId(@Param("id") Integer id);
}
